package com.john.sqwen.ecbc.commons.annotations;

import com.john.sqwen.ecbc.commons.enums.BusinessType;
import com.john.sqwen.ecbc.commons.enums.OperatorType;

import java.lang.annotation.*;

/**
 * @author john_sqwen
 * @packageName com.john.sqwen.ecbc.commons.annotations
 * @date 2022/4/24
 * @projectName ecbc-base
 * @Description LoggerAnnot
 *  自定义操作日志记录注解
 **/
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface LoggerAnnot {
    /**
     * 模块
     */
    public String title() default "";

    /**
     * 功能
     */
    public BusinessType businessType() default BusinessType.OTHER;

    /**
     * 操作人类别
     */
    public OperatorType operatorType() default OperatorType.MANAGE;

    /**
     * 是否保存请求的参数
     */
    public boolean isSaveRequestData() default true;

    /**
     * 是否保存响应的参数
     */
    public boolean isSaveResponseData() default true;
}
